package whf.framework.workflow.service;

import whf.framework.exception.CreateException;
import whf.framework.exception.UpdateException;
import whf.framework.service.TreeService;
import whf.framework.workflow.entity.WorkflowDefinition;
import whf.framework.workflow.exception.WorkflowException;

/**
 * 服务对象接口
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2008-06-21
 */
public interface WorkflowDefinitionService extends whf.framework.service.Service<WorkflowDefinition>, TreeService<WorkflowDefinition> {
	public WorkflowDefinition deploy(WorkflowDefinition definition) throws WorkflowException, UpdateException, CreateException;
	
	public void changeCurrent(WorkflowDefinition definition) throws UpdateException;
} 